<template>
    <view>
        <scroll-view :scroll-y="true" class="scroll-Y" :style="'height:' + scrollH + 'rpx'" @scrolltolower="loadMore">
            <view class="scrollContainer">
                <slot></slot>
            </view>
        </scroll-view>
    </view>
</template>

<script>
// components/scroll-y/scroll-y.js
export default {
    data() {
        return {};
    },
    /**
     * 组件的属性列表
     */
    props: {
        scrollH: {
            type: Number,
            default: 1000
        }
    },
    /**
     * 组件的方法列表
     */
    methods: {
        loadMore() {
            console.log("加载更多")
            this.$emit('loadMore');
        }
    }
};
</script>
<style>
@import './scroll-y.css';
</style>
